<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/WEB-INF/jspf/meta/meta.jspf"%>
<title>科目管理</title>
<%@include file="/WEB-INF/jspf/adminPage.jspf"%>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/static/subject/subjectList.js"></script>
</head>
<body>

	<table id="dg_subject" class="easyui-datagrid" pagination="true"
		pageList="[5,50,100,200,300,500]" pageSize="50"
		data-options="
		fit:true
		,url:'<%=request.getContextPath()%>/subject/subjectList.json'
		,fitColumns:false
		,singleSelect:true
		,toolbar:'#tb_subject'						<%--数据网格(DataGrid)面板的头部工具栏--%>
		,onRowContextMenu:f_contextMenu_subject		<%--鼠标右键事件--%>
		">
		<thead>
			<tr>
				<th data-options="field:'subjectId',width:100" checkbox="true">科目id</th>
				<th
					data-options="field:'subjectName',width:200,align:'center',sortable:true">科目名</th>
				<th data-options="field:'subjectInfo',width:200,align:'center'">科目备注</th>
			</tr>
		</thead>
	</table>
	<!-- 工具栏使用 -->
	<div id="tb_subject" style="padding: 5px; height: auto">
		<!-- 		<div style="margin-bottom:5px">
			<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true"></a>
			<a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true"></a>
			<a href="#" class="easyui-linkbutton" iconCls="icon-save" plain="true"></a>
			<a href="#" class="easyui-linkbutton" iconCls="icon-cut" plain="true"></a>
			<a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true"></a>
		</div> -->
		<div>
			<a href="javascript:void(0)" class="easyui-linkbutton"
				iconCls="icon-remove" onclick="$('#dlg_dell').dialog('open')" plain="true" >删除</a>
				&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="#" class="easyui-linkbutton" iconCls="icon-edit"
				onclick="f_subject_update()" plain="true" >修改</a> &nbsp;&nbsp;&nbsp; 
			<a href="<%=request.getContextPath() %>/subject/subjectList/down" class="easyui-linkbutton" plain="true" >下载</a>
			&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="#"
			class="easyui-linkbutton" iconCls="icon-search"
			onclick="$('#win').window('open')">查询</a>
		</div>
	</div>

	<!--DataGrid行 右键菜单
		//菜单入口
		function f_contextMenu_subject()
	-->
	<%@include file="/WEB-INF/jsp/subject/_menuGrid.jspf"%>

	<!-- 删除对话框架 及后台数据处理
		 "$('#dlg').dialog('open')  打开对话框架 
		 "$('#dlg').dialog('close') 关闭对话框架 
	-->
	<%@include file="/WEB-INF/jsp/subject/_dell.jspf"%>

	<!--修改对话框架 及后台数据处理
		启动入口
		function f_subject_update()
	-->
	<%@include file="/WEB-INF/jsp/subject/_update.jspf"%>

	<!--修改对话框架 及后台数据处理
		启动入口
		function f_subject_oneDetail()
	-->
	<%@include file="/WEB-INF/jsp/subject/_oneDetail.jspf"%>
	

</body>
</html>